package javafx;

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.stage.Stage;

public class main extends Application {

	public static void main(String[] args) {
		launch(args);
	}
	
	@Override
	public void start(Stage stage) throws Exception {

		Button button = new Button();
		
		button.setText("按钮");
		
		button.setLayoutX(30);
		button.setLayoutY(30);
		
		button.setPrefWidth(100);
		button.setPrefHeight(100);
		
		Group group = new Group();
		group.getChildren().add(button);
		
		Scene scene = new Scene(group);
		
		stage.setScene(scene);
		stage.setWidth(600);
		stage.setHeight(600);
		stage.setTitle("javafx");
		stage.show();
		
	}

}
